package com.example.myanimator.evaluator;

import android.animation.TypeEvaluator;

/**
 * @author tgw
 * @date 2021/3/17
 * @describe
 */
public class MyEvaluator implements TypeEvaluator<Integer> {
    @Override
    public Integer evaluate(float fraction, Integer startValue, Integer endValue) {
        int startInt = startValue;
        return (int)(200+startInt+fraction*(endValue-startInt));
    }
}
